package com.ycz.master.Test;

/**
 * author zyc
 * Created on 2021/11/2 16:56
 */
public class Two {
    public static void main(String[] args) {

        int arr[]={2,7,4,8,3,1,11,6,10,5};
        System.out.println( find(arr));
    }

    public static  int find(int arr[]){
       for(int i=1;i<=11;i++){
           int index=1;
           for (int i1 = 0; i1 < arr.length; i1++) {
               if(i==arr[i1]) break;
               index++;
           }
           if(index==11){
               return i;
           }
       }
       return 0 ;
    }


}
